package com.wanghk.service.impl;

import com.wanghk.dao.UserMapper;
import com.wanghk.model.User;
import com.wanghk.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2018/10/10 0010.
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUser(String userName) {
        return userMapper.selectByUserName(userName);
    }
}
